import { BIGINT_PG, INTEGER_PG, VARCHAR_PG, ExtIdTuple, VARCHAR50_PG, VARCHAR255_PG } from "~/db.pg";
import { Gateway, getGateway } from "@/droplet-bus/core.define";

import { app_gateway } from "./core.local";
import { ENUM_PG_TUPLE } from "./core.define";

export const PgIdTupleGateway: Gateway = getGateway(app_gateway, "test_pg_id_tuple");

export type PgIdTuple = ExtIdTuple & {
  enum_small_int: ENUM_PG_TUPLE;
  str_50: VARCHAR50_PG;
  str_255: VARCHAR255_PG;
  str: VARCHAR_PG;
  num_4: INTEGER_PG;
  num_8: BIGINT_PG;
  boolean_default: boolean;
};
